package cn.edu.scau.cmi.liangzijian.ioc.spring.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
	private static ApplicationContext applicationContext = null;
	
	public static ApplicationContext getInstance() {
		if(applicationContext == null) {
			applicationContext = new ClassPathXmlApplicationContext("cn/edu/scau/cmi/liangzijian/ioc/spring/applicationContext.xml");			
		}
		return applicationContext;
	}
}
